package com.coder520.user.service;

import com.coder520.user.mapper.UserMapper;
import com.coder520.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2018/5/19.
 */
@Service("userServiceImpl")
public class userServiceImpl implements userService {

    @Autowired
   private UserMapper userMapper;

    @Override
    public User findUserByusername(String username) {

        User user = userMapper.selectByUsername(username);
        return user;
    }
}
